package test;

import org.abettor.smartswt.global.SingletonGlobalInfo;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseMoveListener;
import org.eclipse.swt.widgets.Text;

public class MyMouseMoveListener implements MouseMoveListener
{
	public void mouseMove(MouseEvent e)
	{
		int x = e.x;
		int y = e.y;
		String string = "(" + x + "," + y + ")";
		SingletonGlobalInfo sgi = SingletonGlobalInfo.getInstance();
		Text txt = (Text) sgi.getWidget("main", "txt");
		txt.setText(string);
	}
}
